public class Text {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createLinkedList();
        mySingleList.display();
        int size = mySingleList.size();
        System.out.println(size);
        mySingleList.addFirst(9);
        mySingleList.addFirst(80);
        mySingleList.display();
        System.out.println(mySingleList.size());
        mySingleList.addLast(55);
        mySingleList.display();
        System.out.println(mySingleList.size());
        mySingleList.addIndex(4,43);
        mySingleList.display();
        mySingleList.addIndex(0,90);
        mySingleList.display();
        mySingleList.addIndex(mySingleList.size(),1001);
        mySingleList.display();
        //mySingleList.addIndex(-1,9);
        System.out.println(mySingleList.contains(1001));
        System.out.println(mySingleList.contains(15));
        mySingleList.remove(43);
        mySingleList.display();
        mySingleList.remove(90);
        mySingleList.display();
        mySingleList.remove(1001);
        mySingleList.display();
        mySingleList.addFirst(12);
        mySingleList.addFirst(12);
        mySingleList.addLast(12);
        mySingleList.addLast(12);
        mySingleList.display();
        mySingleList.removeAllKey(12);
        mySingleList.display();
    }
}
